﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using XCore.Domain.Dto;

namespace SaaS.Model.Dto.Auths
{
    public class MenuInput : IEntityInput<int>
    {
        public int? Id { get; set; }
        public int? ParentId { get; set; }
        public string Path { get; set; }
        [Required]
        [StringLength(32, ErrorMessage = "名称长度限制64位字符")]
        public string Name { get; set; }
        public string Icon { get; set; }
        [Required]
        [StringLength(64,ErrorMessage ="标题长度限制64位字符")]
        public string Title { get; set; }
        public string Component { get; set; }
        public string Redirect { get; set; }
        public bool AlwaysShow { get; set; }
        public bool IsVisble { get; set; }
    }
}
